package org.dreamwork.seagragon.filesystem;

import net.sf.cglib.proxy.CallbackFilter;

import java.lang.reflect.Method;

/**
 * Created by IntelliJ IDEA.
 * User: seth
 * Date: 2010-4-24
 * Time: 18:19:31
 */
class HttpServletCallbackFilter implements CallbackFilter {
    public int accept (Method method) {
        String name = method.getName ();
        if (HttpServletCallback.METHOD_GET_CONFIG.equals (name) ||
            HttpServletCallback.METHOD_GET_CONTEXT.equals (name))
            return 0;
        return 1;
    }
}